home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 64
/
Volume 64 - JOGO DISK .iso
/
Games
/
the_best_every_day.swf
/
scripts
/
__Packages
/
Controller.as
next >
Wrap
Text File
|
2008-04-10
|
937b
|
43 lines
class Controller extends MovieClip
{
function Controller()
{
super();
_global.C = this;
this.oGame = new Game(this._parent.mcGame);
this.onEnterFrame = this.update;
}
function update()
{
this.oGame.update();
}
function addLadder(l_mcLadder)
{
this.oGame.addLadder(l_mcLadder);
}
function addFloor(l_mcFloor)
{
this.oGame.addFloor(l_mcFloor);
}
function addDropPoint(l_mcDropPoint)
{
this.oGame.addDropPoint(l_mcDropPoint);
}
function addPatrick(l_mcPatrick)
{
this.oGame.addPatrick(l_mcPatrick);
}
function addObstacle(l_mcObstacle, l_sType)
{
this.oGame.addObstacle(l_mcObstacle,l_sType);
}
function removeObstacle(l_mcObstacle)
{
this.oGame.removeObstacle(l_mcObstacle);
}
function dropBox(l_bCorrect)
{
this.oGame.dropBox(l_bCorrect);
}
}